/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.es.schema;

import com.pingan.haofang.searchcloud.api.schema.IndexSchema;

/**
 * template管理
 *
 * @author zhangbi617
 * @date 2017-07-05
 */
public interface TemplateManageService {
    /**
     * 创建索引模板
     *
     * @param esHost       esHost
     * @param schema       schema
     * @param templateName templateName
     * @return
     */
    boolean create(String esHost, IndexSchema schema, String templateName);

    /**
     * 删除索引模板
     *
     * @param esHost       esHost
     * @param templateName templateName
     * @return
     */
    boolean delete(String esHost, String templateName);
}
